<?php

$parent_skin = 'gautama';

$this->ctx->tpl->tpl_dirs[] = $GLOBALS['FU']->dir->install . "skins/{$parent_skin}/";

// ленты: форум, галерея, файлы, общаяя, список пользователей, текстовые сообщения(о событиях),
$config = array(

	### виджеты
	'WG_Wrapper' => array(
		'type' => 'Template', 'name' => '1'
	),
	'WG_ChestWidget' => array(
		'type' => 'Template', 'name' => 'html/widget/chest.html'
	),
	'WG_StatsWidget' => array(
		'type' => 'Template', 'name' => 'html/widget/hp/statistics.html'
	),
	'WG_StatsWidget:settings' => array(
		'type' => 'Template', 'name' => 'html/widget/hp/statistics.html:settings'
	),
	'WG_VotesWidget' => array(
		'type' => 'Template', 'name' => 'html/widget/hp/votes.html'
	),
	'WG_VotesWidget:settings' => array(
		'type' => 'Template', 'name' => 'html/widget/hp/votes.html:settings'
	),
	'WG_GalleryWidget' => array(
		'type' => 'Template', 'name' => 'html/widget/hp/gallery.html'
	),
	'WG_GalleryWidget:settings' => array(
		'type' => 'Template', 'name' => 'html/widget/hp/gallery.html:settings'
	),
	'WG_LastCommentedItemsWidget' => array(
		'type' => 'Template', 'name' => 'html/widget/hp/comments.html'
	),
	'WG_LastCommentedItemsWidget:settings' => array(
		'type' => 'Template', 'name' => 'html/widget/hp/comments.html:settings'
	),
	'WG_FilesWidget' => array(
		'type' => 'Template', 'name' => 'html/widget/hp/files.html'
	),
	'WG_FilesWidget:settings' => array(
		'type' => 'Template', 'name' => 'html/widget/hp/files.html:settings'
	),
	'WG_TagsWidget' => array(
		'type' => 'Template', 'name' => 'html/widget/hp/tags.html'
	),
	'WG_TagsWidget:settings' => array(
		'type' => 'Template', 'name' => 'html/widget/hp/tags.html:settings'
	),
	'WG_LastDocsWidget' => array(
		'type' => 'Template', 'name' => 'html/widget/hp/lastdocs.html'
	),
	'WG_LastDocsWidget:settings' => array(
		'type' => 'Template', 'name' => 'html/widget/hp/lastdocs.html:settings'
	),
	'WG_UserListWidget' => array(
		'type' => 'Template', 'name' => 'html/widget/hp/users.html'
	),
	'WG_UserListWidget:settings' => array(
		'type' => 'Template', 'name' => 'html/widget/hp/users.html:settings'
	),
	'WG_AnnounceItemWidget' => array(
		'type' => 'Template', 'name' => 'html/widget/hp/announce_item.html'
	),
	'WG_AnnounceItemWidget:settings' => array(
		'type' => 'Template', 'name' => 'html/widget/hp/announce_item.html:settings'
	),
	'WG_CalendarWidget' => array(
		'type' => 'Template', 'name' => 'html/widget/hp/calendar.html'
	),
	'WG_CalendarWidget:cal' => array(
		'type' => 'Template', 'name' => 'html/widget/hp/calendar.html:cal'
	),
	'WG_CalendarWidget:settings' => array(
		'type' => 'Template', 'name' => 'html/widget/hp/calendar.html:settings'
	),
	'WG_AnnouncementWidget' => array(
		'type' => 'Template', 'name' => 'html/widget/hp/plaintext.html'
	),
	'WG_AnnouncementWidget:settings' => array(
		'type' => 'Template', 'name' => 'html/widget/hp/plaintext.html:settings'
	),
	'WG_MenuWidget' => array(
		'type' => 'Template', 'name' => 'html/widget/hp/menu.html'
	),
	'WG_MenuWidget:settings' => array(
		'type' => 'Template', 'name' => 'html/widget/hp/menu.html:settings'
	),
	'WG_CmsMenuWidget' => array(
		'type' => 'Template', 'name' => 'html/widget/hp/cms_menu.html'
	),
	'WG_CmsMenuWidget:settings' => array(
		'type' => 'Template', 'name' => 'html/widget/hp/cms_menu.html:settings'
	),
	'WG_HotDocumentWidget' => array(
		'type' => 'Template', 'name' => 'html/widget/hp/hot_doc.html'
	),
	'WG_HotDocumentWidget:settings' => array(
		'type' => 'Template', 'name' => 'html/widget/hp/hot_doc.html:settings'
	),
	'WG_HotDocumentWidget:image' => array(
		'type' => 'Template', 'name' => 'html/widget/hp/hot_doc.html:image'
	),
	'WG_CreateBtnWidget' => array(
		'type' => 'Template', 'name' => 'html/widget/createbtn.html'
	),
	'WG_RssWidget' => array(
		'type' => 'Template', 'name' => 'html/widget/rss.html'
	),

	### Виджеты которые работают только в лентах
	'WG_Feed_DoctypesMenuWidget' => array(
		'type' => 'Template', 'name' => 'html/widget/feed/doctypes_menu.html'
	),
	'WG_Feed_TdiMenuWidget' => array(
		'type' => 'Template', 'name' => 'html/widget/feed/tdi_menu.html'
	),
	'WG_Feed_TagsWidget' => array(
		'type' => 'Template', 'name' => 'html/widget/feed/tags.html'
	),

	### Виджеты управления сообществом
	'WG_CommunityRights' => array(
		'type' => 'Template', 'name' => 'html/widget/community_rights.html'
	),
	'WG_CommunityRights:settings' => array(
		'type' => 'Template', 'name' => 'html/widget/community_rights.html:settings'
	),
	'WG_SectionsManage' => array(
		'type' => 'Template', 'name' => 'html/widget/sections_settings.html'
	),
	'WG_SectionsManage:init' => array(
		'type' => 'JTemplate', 'name' => 'html/widget/sections_widget.html'
	),
	'WG_SectionsManage:form' => array(
		'type' => 'JTemplate', 'name' => 'html/widget/sections_form.html'
	),
	'WG_SectionsManage:container' => array(
		'type' => 'JTemplate', 'name' => 'html/widget/sections_container.html'
	),



	### Ленты сайта всевозможные
	'feed_site' => array(
		'type' => 'Template', 'name' => 'feed_site.html'
	),
	'feed_items' => array(
		'type' => 'Template', 'name' => 'feed_site.html:itemslist'
	),
	'feed_site/rss.xml' => array(
		'type' => 'RssTemplate', 'name' => 'rss/feed_site.html'
	),

	### Ленты всевозможные
	'feed' => array(
		'type' => 'Template', 'name' => 'html/community/view/feed.html'
	),

	'feed/rss.xml' => array(
		'type' => 'RssTemplate', 'name' => 'rss/feed.html'
	),
	'comments/rss.xml' => array(
		'type' => 'RssTemplate', 'name' => 'rss/comments.html'
	),

	'forum' => array(
		'type' => 'Template', 'name' => 'html/view/forum.html'
	),
	'alphabet' => array(
		'type' => 'Template', 'name' => 'html/view/alphabet.html'
	),
	'issues' => array(
		'type' => 'Template', 'name' => 'html/view/issue.html'
	),
	'files' => array(
		'type' => 'Template', 'name' => 'html/view/finder.html'
	),
	'items:files' => array(
		'type' => 'Template', 'name' => 'html/view/finder.html:files_list'
	),
	'items:member' => array(
		'type' => 'Template', 'name' => 'html/member/feed.html:itemslist'
	),

	'forum_items' => array(
		'type' => 'Template', 'name' => 'html/forum/list.html:items'
	),
	'items' => array(
		'type' => 'Template', 'name' => 'feed.html:itemslist'
	),
	'gallery' => array(
		'type' => 'Template', 'name' => 'html/view/gallery.html'
	),
	'items:gallery' => array(
		'type' => 'Template', 'name' => 'html/gallery/index.html:gallery_list'
	),

	### Персона
	'person:show' => array(
		'type' => 'Template', 'name' => 'html/person/show.html'
	),
	'person:create' => array(
		'type' => 'Template', 'name' => 'html/person/create.html'
	),
	'person:edit' => array(
		'type' => 'Template', 'name' => 'html/person/create.html'
	),

	### Комментарии
	### Для безаяксовых дел
	'comments' => array(
		'type' => 'Template', 'name' => 'html/comments/comments.html'
	), ### Комменты и форма сабмита к итему
	'comments_answer_to_parent' => array(
		'type' => 'Template', 'name' => 'html/comments/comments.html:answer_to_parent'
	),### Только форма сабмита
	'comments_only_comments' => array(
		'type' => 'Template', 'name' => 'html/comments/comments.html:only_comments'
	),### Только комментарии
	'comments_update_form' => array(
		'type' => 'Template', 'name' => 'html/comments/comments.html:update_form'
	),### Только форма редактирования комментария



	### Используются только ajax обработчиками
	'comments_container' => array(
		'type' => 'Template', 'name' => 'html/comments/comments.html:comment_container'
	),
	'commentsform' => array(
		'type' => 'Template', 'name' => 'html/comments/comments.html:form'
	),
	'comments_upform' => array(
		'type' => 'Template', 'name' => 'html/comments/comments.html:up_form'
	),
	'comment_item' => array(
		'type' => 'Template', 'name' => 'html/comments/comments.html:item'
	),
	'comments_loader_container' => array(
		'type' => 'Template', 'name' => 'html/comments/comments.html:loader_container'
	),

	### Служебные сообщения
	'after_submit_comment' => array(
		'type' => 'Template', 'name' => 'html/messages/commentsubmit.html'
	),
	'update_success' => array(
		'type' => 'Template', 'name' => 'html/messages/update_comment.html'
	),
	'deletecomment_success' => array(
		'type' => 'Template', 'name' => 'html/messages/delete_comment.html'
	),
	'deletecommunity_success' => array(
		'type' => 'Template', 'name' => 'html/messages/delete_community.html'
	),
	'deletetdi_success' => array(
		'type' => 'Template', 'name' => 'html/messages/delete_tdi.html'
	),
	'join_message' => array(
		'type' => 'Template', 'name' => 'html/messages/join.html'
	),
	'join_joined' => array(
		'type' => 'Template', 'name' => 'html/messages/join_joined.html'
	),
	'join_unknown' => array(
		'type' => 'Template', 'name' => 'html/messages/join_unknown.html'
	),
	'join_premoderated' => array(
		'type' => 'Template', 'name' => 'html/messages/join_premoderated.html'
	),
	'item_up_message' => array(
		'type' => 'Template', 'name' => 'html/messages/itemup.html'
	),
	'accessdnd' => array(
		'type' => 'Template', 'name' => 'html/messages/accessdnd.html'
	),
	'community_deleted' => array(
		'type' => 'Template', 'name' => 'html/messages/comm_deleted.html'
	),
	'404' => array(
		'type' => 'Template', 'name' => 'html/http_errors/404.html'
	),

	### Не разобранное
	'rss_subscriptions' => array(
		'type' => 'Template', 'name' => 'html/rss_subscriptions.html'
	),
	'rss_importopml' => array(
		'type' => 'Template', 'name' => 'html/rss_importopml.html'
	),
	'joinqueue' => array(
		'type' => 'Template', 'name' => 'html/joinqueue.html'
	),
	'users' => array(
		'type' => 'Template', 'name' => 'html/community/members.html'
	),
	'member' => array(
		'type' => 'Template', 'name' => 'html/user/view/feed.html'
	),
	'preferences' => array(
		'type' => 'Template', 'name' => 'html/preferences.html'
	),
	'community_profile' => array(
		'type' => 'Template', 'name' => 'html/community/profile.html'
	),
	'openid_login' => array(
		'type' => 'Template', 'name' => 'html/auth/index.html'
	),
	'edit_profile' => array(
		'type' => 'Template', 'name' => 'html/member/editprofile.html'
	),
	'communities/adhtml/widget/hp/hot_doc.html:settingsd' => array(
		'type' => 'Template', 'name' => ''
	),
	'index' => array(
		'type' => 'Template', 'name' => 'html/community/index.html'
	),

	'hp' => array(
		'type' => 'Template', 'name' => 'html/node/hp.html'
	),

	'registration' => array(
		'type' => 'Template', 'name' => 'html/node/hp.html'
	),

	'all_communities' => array(
		'type' => 'Template', 'name' => 'html/node/list.html'
	),
	'msg' => array(
		'type' => 'Template', 'name' => 'html/messages/message.html'
	),
	'generic/directory' => array(
		'type' => 'Template', 'name' => '_/generic/directory.html'
	),
	'not_found' => array(
		'type' => 'Template', 'name' => '_/generic/_404.html'
	),
	'post' => array(
		'type' => 'Template', 'name' => 'html/community/item.html'
	),
	'issue' => array(
		'type' => 'Template', 'name' => 'html/doctypes/issue/issue.html'
	),
	'create' => array(
		'type' => 'Template', 'name' => 'html/community/add.html'
	),
	'createtdi' => array(
		'type' => 'Template', 'name' => 'createtdi.html'
	),
	'delete_sure' => array(
		'type' => 'Template', 'name' => 'html/messages/delete_item.html'
	),



	### Form processing templates
	### формы
	'_forms/form:Form' => array(
		'type' => 'Template', 'name' => 'html/form/form.html:Form'
	),

	### группы
	'_forms/group:PlainList' => array(
		'type' => 'Template', 'name' => 'html/form//group.html:PlainList'
	),

	### обертка групп
	'_forms/wrapper:Plain' => array(
		'type' => 'Template', 'name' => 'html/form//form.html:Plain'
	),
	'_forms/wrapper:None' => array(
		'type' => 'Template', 'name' => 'html/form/form.html:None'
	),


	### кнопки
	'_forms/buttons:Cancel' => array(
		'type' => 'Template', 'name' => 'html/form/fields.html:Cancel'
	),
	'_forms/buttons:Submit' => array(
		'type' => 'Template', 'name' => 'html/form/fields.html:Submit'
	),

	### обертка кнопок
	'_forms/form:Buttons' => array(
		'type' => 'Template', 'name' => 'html/form/fields.html:Buttons'
	),



	/*
	 * Эти группы содержат группы полей, и могут содержать друг друга. Те они древовидные.
	 * Управление этим деревом осуществляется в конфиге skins/название темы/create_item_groups.php
	 *
	 * Рендеринг происходит в том порядке в котором группы указаны в дереве.
	 * Поидее группы нужно применять когда вы делаете форму состоящую из нескольких колонок,
	 * у каждой колонки своя обертка, кроме того есть такие группы у которых одна обертка.
	 *
	 */
	'_forms/wrapper:Group1' => array(
		'type' => 'Template', 'name' => 'html/community/add.html:MetaGroup'
	),
	'_forms/wrapper:Group2' => array(
		'type' => 'Template', 'name' => 'html/community/add.html:DTGroup'
	),
	'_forms/wrapper:Group3' => array(
		'type' => 'Template', 'name' => 'html/form/form.html:Plain'
	),
	'_forms/wrapper:Group4' => array(
		'type' => 'Template', 'name' => ''
	),
	'_forms/wrapper:Group5' => array(
		'type' => 'Template', 'name' => 'html/form/form.html:Plain'
	),

	### элементы текстовой строки
	'_forms/string:Textarea' => array(
		'type' => 'Template', 'name' => 'html/form/fields.html:Textarea'
	),
	'_forms/string:Tinymce' => array(
		'type' => 'Template', 'name' => 'html/form/fields.html:Tinymce'
	),
	'_forms/string:Plain' => array(
		'type' => 'Template', 'name' => 'html/form/fields.html:Plain'
	),
	'_forms/string:Hidden' => array(
		'type' => 'Template', 'name' => 'html/form/fields.html:Hidden'
	),

	### обертки элементов текстовой строки
	'_forms/wrapper:TagsWrapper' => array(
		'type' => 'Template', 'name' => 'html/form/fields.html:FieldTags'
	),
	'_forms/wrapper:TextAreaWrapper' => array(
		'type' => 'Template', 'name' => 'html/form/fields.html:FieldTextArea'
	),
	'_forms/wrapper:FileWrapper' => array(
		'type' => 'Template', 'name' => 'html/form/fields.html:FieldFile'
	),
	'_forms/wrapper:TextWrapper' => array(
		'type' => 'Template', 'name' => 'html/form/fields.html:FieldText'
	),
	'_forms/wrapper:WysiwygWrapper' => array(
		'type' => 'Template', 'name' => 'html/form/fields.html:FieldWysiwyg'
	),



	### элементы списков
	'_forms/options:Checkbox' => array(
		'type' => 'Template', 'name' => 'html/form/fields.html:Checkbox'
	),
	'_forms/options:Select' => array(
		'type' => 'Template', 'name' => 'html/form/fields.html:Select'
	),
	'_forms/options:DocTypeSelector' => array(
		'type' => 'Template', 'name' => 'html/form/fields.html:DocTypeSelector'
	),

	### обертки элементов списков
	'_forms/wrapper:CheckboxWrapper' => array(
		'type' => 'Template', 'name' => 'html/form/fields.html:FieldCheckbox'
	),
	'_forms/wrapper:SelectWrapper' => array(
		'type' => 'Template', 'name' => 'html/form/fields.html:FieldSelect'
	),
	'_forms/wrapper:DocTypeSelectorWrapper' => array(
		'type' => 'Template', 'name' => 'html/form/fields.html:FieldDocTypeSelect'
	),

	### элемент аплоад
	'_forms/upload:UploadImage' => array(
		'type' => 'Template', 'name' => 'html/form/fields.html:UploadImage'
	),
	'_forms/upload:UploadFile' => array(
		'type' => 'Template', 'name' => 'html/form/fields.html:UploadFile'
	),

	### ошибка
	'_forms/errors:List' => array(
		'type' => 'Template', 'name' => 'html/form/errors.html:List'
	),

	### Квесты
	'create_quest' => array(
		'type' => 'Template', 'name' => 'html/quest/create.html'
	),
	'quest_doc_action_ajax' => array(
		'type' => 'Template', 'name' => 'html/quest/doc_action.html:show_quest'
	),
	'quest_doc_action_panel_ajax' => array(
		'type' => 'Template', 'name' => 'html/quest/show.html:action_panel_content'
	),
	'quest_doc_action_quest_btn_ajax' => array(
		'type' => 'Template', 'name' => 'html/quest/doc_action.html:quest_btn'
	),
	'quest_doc_action_cur_balls_btn_ajax' => array(
		'type' => 'Template', 'name' => 'html/quest/doc_action.html:cur_balls_btn'
	),
	'quest_doc_action_simple_ajax' => array(
		'type' => 'Template', 'name' => 'html/quest/doc_action.html:simple_show_quest'
	),

	'edit_quest' => array(
		'type' => 'Template', 'name' => 'html/quest/edit.html'
	),
	'show_quest' => array(
		'type' => 'Template', 'name' => 'html/quest/show.html'
	),

	'edit_quest_ajax_rigths' => array(
		'type' => 'Template', 'name' => 'html/quest/edit.html:rights_body'
	),
	'edit_quest_ajax_users' => array(
		'type' => 'Template', 'name' => 'html/quest/edit.html:user_list_body'
	),
	'edit_quest_ajax_vote' => array(
		'type' => 'Template', 'name' => 'html/quest/edit.html:voting_body'
	),
	'edit_quest_ajax_vote_form' => array(
		'type' => 'Template', 'name' => 'html/quest/edit.html:vote_form'
	),
	'search_global' => array(
		'type' => 'Template', 'name' => 'html/search/global.html'
	),
	'top_menu_items' => array(
    'type' => 'Template', 'name' => 'html/widget/top_menu_items.html'
  ),
  'top_menu_settings' => array(
    'type' => 'Template', 'name' => 'html/widget/top_menu_settings.html'
  ),
);

